package com.jz.config;

import lombok.Data;
import lombok.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * Created by WISE on 2021/12/23.
 */
@ConfigurationProperties(value= "student")//1.获取父类中配置的父类信息
@Data//2.自动生成set get方法
@Component//3.将对象交给SPringle管理
public class ConfigTest {
    private String name;

    private  String age;




}
